import { defineStore } from 'pinia'

export const useStore = defineStore('state', {
  state: () => {
    return {
      one1: 100,
      one2: 100,
      one3: 100,
      one4: 100,
      one5: 100,
      one6: 100,
      one7: 100,
      one8: 100,
      one9: 100,
      one10: 100,
      one11: 100,
      one12: 100,
      one13: 100,
      one14: 100,
      one15: 100,
      one16: 100,
    }
  },
  getters: {
    sum: (state) => state.one1 + state.one2 + state.one3 + state.one4 + state.one5 + state.one6
    + state.one7 + state.one8 + state.one9 + state.one10 + state.one11 + state.one12 + state.one13
    + state.one14 + state.one15 + state.one16,
  },
})